#ifndef SCANNER_EXPORT_H
#define SCANNER_EXPORT_H

#include <QtCore/QtGlobal>

#if defined(SCANNER_LIBRARY)
#define SCANNER_EXPORT Q_DECL_EXPORT
#else
#define SCANNER_EXPORT Q_DECL_IMPORT
#endif

#ifdef __cplusplus
extern "C" {
#endif

typedef void* ScannerHandle;

SCANNER_EXPORT ScannerHandle scanner_create();
SCANNER_EXPORT void scanner_start_scan(ScannerHandle handle, const char *path);
SCANNER_EXPORT void scanner_stop_scan(ScannerHandle handle);
SCANNER_EXPORT int scanner_save_result(ScannerHandle handle, const char *path);
SCANNER_EXPORT void scanner_destroy(ScannerHandle handle);

#ifdef __cplusplus
}
#endif

#endif // SCANNER_EXPORT_H
